{"version":3,"sources":["webpack:///./modules/scrollBar.ts","webpack:///./modules/SelectChoices.ts","webpack:///./modules/FormAnimation.ts","webpack:///./modules/FileUploadPreview.ts","webpack:///./modules/PaymentSummary.ts","webpack:///./modules/RatingAndReviews.ts"],"names":["__webpack_require__","r","__webpack_exports__","perfect_scrollbar__WEBPACK_IMPORTED_MODULE_0__","ScrollBar","element","_this","this","closest","suppressScrollX","setTimeout","cmpWrapper","querySelector","setup","selector","Array","from","document","querySelectorAll","filter","node","dataset","moduleInitialized","forEach","d","initChoices","SelectChoices","initCssFile","prototype","file","location","pathname","split","pop","link","createElement","choicesCssUrl","getAttribute","href","substr","lastIndexOf","type","rel","className","selectBoxes","Promise","all","e","then","bind","module","default","searchEnabled","searchChoices","itemSelectText","shouldSort","choicesDropdown","FormAnimation","setUp","input","parent","textElement","inputText","value","length","classList","add","addEventListener","event","focusIn","focusOut","target","tagName","contains","remove","FileUploadPreview","maxFileSize","console","log","initWithRetry","fileUploadPreviewInitialized","attemptCount","fileContainers","initFileUploadPreviews","maxAttempts","container","index","fileInput","textInput","removeButton","previewInitialized","files","name","handleFileSelection","warn","preventDefault","removeFile","includes","style","display","createImagePreview","error","reader","FileReader","onload","imageUrl","result","existingPreview","previewWrapper","previewImage","src","alt","appendChild","browseButton","onerror","readAsDataURL","PaymentSummary","paymentSummary","form","formId","id","substring","paymentSummaryAjax","replace","encodeURI","toLowerCase","PaymentSummaryInit","fetchAndUpdateStore","url","fetch","credentials","res","text","updateContent","window","Eucerin","initModules","innerHTML","_helpers_DOMHelpers__WEBPACK_IMPORTED_MODULE_0__","RatingAndReviews","selectedRatingNumber","selectRanking","rankingWrapper","buildRating","options","stars","rating","selectedStar","selectedText","selectEl","selectedValue","select","Object","buildStars","undefined","star","currentTarget","innerText","onHoverHandler","append","onMouseleaveHandler","selectedStarArray","ratingStars","map","option","fullClass","i","ratingNumber","isTablet"],"mappings":"6GAAAA,EAAAC,EAAAC,GAAA,IAAAC,EAAAH,EAAA,KAIAI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,iBAAmBD,EAAO/H,aAAa,SAAW,gBAAkB+H,EAAOP,UAAY,cAKtKlB,EAAA/G,UAAAkI,eAAR,SAAuBxE,GAEnB,IAAK,IAAIgF,EAAI,EAAGA,EAAI/J,KAAK2J,YAAYlG,OAAQsG,IAAK,CAC9C,IAAIX,EAAoBpJ,KAAK2J,YAAYI,GACrCA,GAAKhF,EACLqE,EAAK1F,UAAUC,IAAI,aAEnByF,EAAK1F,UAAUS,OAAO,eAK1BiE,EAAA/G,UAAAoI,oBAAR,SAA4BO,GACJ,GAAhBA,EACAhK,KAAK2J,YAAY3I,QAAQ,SAAClB,GACtBA,EAAQ4D,UAAUS,OAAO,eAGxB6D,QAAQiC,UACTjK,KAAKuJ,eAAeS,EAAe,IAInD5B,EAxJA,eA0JA,IAAIA,EAAiB9H","file":"./modules/[request].dd5a6ea2.js","sourcesContent":["import PerfectScrollbar from 'perfect-scrollbar';\r\n\r\nconst moduleSelector = '[data-module=\"ScrollBar\"]';\r\n\r\nexport default class ScrollBar {\r\n cmpWrapper: HTMLElement;\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new ScrollBar(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n !this.element.closest(\".cp-pharmacy-finder\") ? new PerfectScrollbar(element, {\r\n suppressScrollX: true\r\n }) : \"\";\r\n setTimeout(() => {\r\n this.cmpWrapper = this.element.querySelector(\".cmplazypreviewiframe\");\r\n if (this.cmpWrapper) {\r\n new PerfectScrollbar(this.cmpWrapper, {\r\n suppressScrollX: true\r\n });\r\n } else {\r\n new PerfectScrollbar(element, {\r\n suppressScrollX: true\r\n });\r\n }\r\n }, 1000)\r\n }\r\n}\r\n\r\nnew ScrollBar.setup();","/// \r\nimport './../../../../Website/dist/Choices-master/public/assets/styles/choices.min.css';\r\n\r\nconst moduleSelector = '[data-module=\"SelectChoices\"]';\r\n\r\nexport default class SelectChoices {\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new SelectChoices(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n if (this.element) {\r\n initChoices();\r\n this.initCssFile();\r\n }\r\n }\r\n\r\n initCssFile() {\r\n const file = location.pathname.split(\"/\").pop();\r\n\r\n const link = document.createElement(\"link\");\r\n const choicesCssUrl = this.element.getAttribute('data-choices-script-init-url');\r\n link.href = file.substr(0, file.lastIndexOf(\".\")) + choicesCssUrl;\r\n link.type = \"text/css\";\r\n link.rel = \"stylesheet\";\r\n link.className = \"loaded\";\r\n // document.querySelector(\".loaded\") ? document.querySelector(\".loaded\").replaceWith(link) : document.getElementsByTagName(\"head\")[0].appendChild(link);\r\n }\r\n}\r\n\r\nexport function initChoices() {\r\n const selectBoxes = document.querySelectorAll('.field:not(.ranking) select:not(.change-quantity), .promotion-wrapper select, .custom-selectbox');\r\n if (selectBoxes) {\r\n selectBoxes.forEach((element: HTMLSelectElement) => {\r\n const Choices = () => import ('./../../../../Website/dist/Choices-master/src/scripts/choices');\r\n Choices().then((module) => new module.default(element, {\r\n searchEnabled: false,\r\n searchChoices: false,\r\n itemSelectText: '',\r\n shouldSort: false\r\n }))\r\n .then(() => {\r\n Array.from(document.querySelectorAll(\".choices__list--dropdown .choices__list\")).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n const choicesDropdown = element;\r\n if (choicesDropdown) {\r\n const ScrollBar = () => import('./ScrollBar');\r\n ScrollBar().then((module) => new module.default(choicesDropdown))\r\n }\r\n });\r\n })\r\n })\r\n\r\n \r\n }\r\n}\r\n\r\nnew SelectChoices.setup();","const moduleSelector = '[data-module=\"FormAnimation\"]';\r\n\r\nexport default class FormAnimation {\r\n\r\n input: HTMLInputElement[];\r\n parent: HTMLElement;\r\n textElement: HTMLElement;\r\n positiveValidation: HTMLElement;\r\n field: HTMLInputElement[];\r\n dropdownWidth: number;\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new FormAnimation(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n this.setUp();\r\n }\r\n\r\n setUp() {\r\n this.input = Array.from(>document.querySelectorAll('input[type=\"text\"]'));\r\n this.parent = document.querySelector('form');\r\n this.textElement = document.querySelector('form .text');\r\n Array.from(this.element.querySelectorAll('.field.text')).forEach((element: HTMLInputElement) => {\r\n const inputText = element.querySelector('.uk-input, .uk-textarea') as HTMLInputElement;\r\n\r\n if (inputText && inputText.value.length !== 0) {\r\n element.classList.add('focused');\r\n element.classList.add('valid');\r\n }\r\n\r\n if (inputText) {\r\n inputText.addEventListener('blur', () => {\r\n element.classList.add('focused');\r\n element.classList.add(\"valid\");\r\n })\r\n }\r\n\r\n element.addEventListener('focusin', (event) => {\r\n this.focusIn(event);\r\n })\r\n\r\n element.addEventListener('focusout', (event) => {\r\n this.focusOut(event);\r\n })\r\n })\r\n\r\n Array.from(document.querySelectorAll('.choices')).forEach((element) => {\r\n element.addEventListener('focusin', (event) => {\r\n this.focusIn(event);\r\n })\r\n\r\n element.addEventListener('focusout', (event) => {\r\n this.focusOut(event);\r\n })\r\n\r\n if (element.querySelector(\".choices__list .choices__item.is-highlited:not(:first-of-type)\")) {\r\n element.classList.add(\"valid\");\r\n }\r\n })\r\n\r\n Array.from(document.querySelectorAll(\".choices__inner > .choices__list > .choices__item--selectable:not(.choices__placeholder)\")).forEach((element) => {\r\n element.closest(\".choices\").classList.add(\"valid\");\r\n })\r\n }\r\n\r\n focusIn(event: Event): void {\r\n var target = event.target;\r\n if (target.tagName !== 'BUTTON' && target.tagName !== 'A') {\r\n if (target.classList.contains('input-element')) {\r\n target.closest('.field').classList.add('focused');\r\n }\r\n }\r\n\r\n if (target.querySelector('.choices__item') && target.querySelector('.choices__item').classList.contains('choices__placeholder')) {\r\n target.classList.add('focused');\r\n }\r\n }\r\n\r\n focusOut(event: Event): void {\r\n var target = event.target;\r\n\r\n if (target.tagName !== 'BUTTON' && target.tagName !== 'A') {\r\n if (!target.value && target.classList.contains('input-element')) {\r\n target.closest('.field').classList.remove('focused');\r\n target.closest('.field').classList.remove('valid');\r\n }\r\n }\r\n\r\n if (target.querySelector('.choices__item') && target.querySelector('.choices__item').classList.contains('choices__placeholder')) {\r\n target.classList.remove('focused');\r\n target.classList.remove('valid');\r\n }\r\n }\r\n}\r\n\r\nnew FormAnimation.setup();","const moduleSelector = '[data-module=\"Form\"]';\r\n\r\nexport default class FileUploadPreview {\r\n fileContainers: NodeListOf;\r\n maxFileSize: number = 10 * 1024 * 1024; // 10MB default\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector))\r\n .filter((node: HTMLElement) => !node.dataset.fileUploadPreviewInitialized)\r\n .forEach((element: HTMLElement) => {\r\n new FileUploadPreview(element);\r\n element.dataset.fileUploadPreviewInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n console.log('FileUploadPreview: Constructor called');\r\n this.initWithRetry(0);\r\n }\r\n \r\n private initWithRetry(attemptCount: number): void {\r\n const maxAttempts = 3;\r\n const delay = 150 + (attemptCount * 100);\r\n \r\n setTimeout(() => {\r\n this.fileContainers = this.element.querySelectorAll('.alpaca-file-container');\r\n console.log(`FileUploadPreview: Attempt ${attemptCount + 1} - Found ${this.fileContainers.length} containers`);\r\n \r\n if (this.fileContainers.length > 0) {\r\n this.initFileUploadPreviews();\r\n }\r\n \r\n if (this.fileContainers.length === 0 && attemptCount < maxAttempts - 1) {\r\n console.log('FileUploadPreview: Retrying...');\r\n this.initWithRetry(attemptCount + 1);\r\n }\r\n }, delay);\r\n }\r\n\r\n private initFileUploadPreviews(): void {\r\n console.log('FileUploadPreview: Initializing previews for containers');\r\n \r\n this.fileContainers.forEach((container: HTMLElement, index: number) => {\r\n const fileInput = container.querySelector('input[type=\"file\"]') as HTMLInputElement;\r\n const textInput = container.querySelector('input[type=\"text\"]') as HTMLInputElement;\r\n const removeButton = container.querySelector('.alpaca-remove-file') as HTMLElement;\r\n\r\n console.log(`FileUploadPreview: Container ${index} - fileInput: ${!!fileInput}, textInput: ${!!textInput}, removeButton: ${!!removeButton}`);\r\n\r\n if (!fileInput) {\r\n console.warn(`FileUploadPreview: Container ${index} has no file input, skipping`);\r\n return;\r\n }\r\n \r\n if (fileInput.dataset.previewInitialized === 'true') {\r\n console.log(`FileUploadPreview: Container ${index} already initialized, skipping`);\r\n return;\r\n }\r\n \r\n fileInput.dataset.previewInitialized = 'true';\r\n console.log(`FileUploadPreview: Container ${index} initialized successfully`);\r\n\r\n fileInput.addEventListener('change', (event) => {\r\n console.log(`FileUploadPreview: File change detected on container ${index}`);\r\n const files = (event.target as HTMLInputElement).files;\r\n const file = files && files.length > 0 ? files[0] : null;\r\n \r\n if (file) {\r\n console.log(`FileUploadPreview: File selected - ${file.name} (${file.type})`);\r\n this.handleFileSelection(file, container, textInput);\r\n \r\n setTimeout(() => {\r\n console.log('FileUploadPreview: Re-scanning for new containers...');\r\n this.initWithRetry(0);\r\n }, 300);\r\n } else {\r\n console.warn('FileUploadPreview: No file selected');\r\n }\r\n });\r\n\r\n if (removeButton) {\r\n removeButton.addEventListener('click', (e) => {\r\n e.preventDefault();\r\n console.log(`FileUploadPreview: Remove button clicked on container ${index}`);\r\n this.removeFile(container, fileInput, textInput);\r\n });\r\n }\r\n });\r\n }\r\n\r\n private handleFileSelection(file: File, container: HTMLElement, textInput: HTMLInputElement): void {\r\n console.log('FileUploadPreview: Handling file selection');\r\n const validImageTypes = ['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/heic', 'image/tiff'];\r\n \r\n if (!validImageTypes.includes(file.type)) {\r\n console.error(`FileUploadPreview: Invalid file type: ${file.type}`);\r\n return;\r\n }\r\n\r\n console.log('FileUploadPreview: File type valid, proceeding...');\r\n\r\n if (textInput) {\r\n textInput.value = file.name;\r\n console.log('FileUploadPreview: Updated text input with filename');\r\n }\r\n\r\n const removeButton = container.querySelector('.alpaca-remove-file') as HTMLElement;\r\n if (removeButton) {\r\n removeButton.style.display = 'block';\r\n console.log('FileUploadPreview: Showed remove button');\r\n }\r\n\r\n this.createImagePreview(file, container);\r\n }\r\n\r\n private createImagePreview(file: File, container: HTMLElement): void {\r\n console.log('FileUploadPreview: Creating image preview');\r\n const reader = new FileReader();\r\n\r\n reader.onload = (e) => {\r\n console.log('FileUploadPreview: FileReader loaded successfully');\r\n const target = e.target as FileReader;\r\n const imageUrl = target && target.result ? target.result as string : '';\r\n \r\n if (!imageUrl) {\r\n console.error('FileUploadPreview: Failed to read image URL');\r\n return;\r\n }\r\n \r\n console.log('FileUploadPreview: Image URL created, length:', imageUrl.length);\r\n \r\n const existingPreview = container.querySelector('.image-preview-wrapper');\r\n if (existingPreview) {\r\n console.log('FileUploadPreview: Removing existing preview');\r\n existingPreview.remove();\r\n }\r\n\r\n const previewWrapper = document.createElement('div');\r\n previewWrapper.className = 'image-preview-wrapper';\r\n \r\n const previewImage = document.createElement('img');\r\n previewImage.className = 'image-preview';\r\n previewImage.src = imageUrl;\r\n previewImage.alt = file.name;\r\n \r\n previewWrapper.appendChild(previewImage);\r\n container.appendChild(previewWrapper);\r\n console.log('FileUploadPreview: Preview elements created and appended to container');\r\n\r\n const browseButton = container.querySelector('.alpaca-browse-file-button') as HTMLElement;\r\n const textInput = container.querySelector('input[type=\"text\"]') as HTMLElement;\r\n \r\n if (browseButton) {\r\n browseButton.style.display = 'none';\r\n console.log('FileUploadPreview: Hid browse button');\r\n }\r\n if (textInput) {\r\n textInput.style.display = 'none';\r\n console.log('FileUploadPreview: Hid text input');\r\n }\r\n \r\n console.log('FileUploadPreview: ✓ Image preview complete!');\r\n };\r\n\r\n reader.onerror = (error) => {\r\n console.error('FileUploadPreview: FileReader error:', error);\r\n };\r\n\r\n console.log('FileUploadPreview: Starting to read file as Data URL');\r\n reader.readAsDataURL(file);\r\n }\r\n\r\n private removeFile(container: HTMLElement, fileInput: HTMLInputElement, textInput: HTMLInputElement): void {\r\n fileInput.value = '';\r\n \r\n if (textInput) {\r\n textInput.value = '';\r\n }\r\n\r\n const previewWrapper = container.querySelector('.image-preview-wrapper');\r\n if (previewWrapper) {\r\n previewWrapper.remove();\r\n }\r\n\r\n const removeButton = container.querySelector('.alpaca-remove-file') as HTMLElement;\r\n if (removeButton) {\r\n removeButton.style.display = 'none';\r\n }\r\n\r\n const browseButton = container.querySelector('.alpaca-browse-file-button') as HTMLElement;\r\n if (browseButton) {\r\n browseButton.style.display = 'flex';\r\n }\r\n if (textInput) {\r\n textInput.style.display = 'none';\r\n }\r\n }\r\n}\r\n\r\n","// import FormCheckout from '../modules/FormCheckout';\r\nconst moduleSelector = '[data-module=\"PaymentSummary\"]';\r\n\r\nexport default class PaymentSummary {\r\n paymentSummary;\r\n paymentSummaryAjax;\r\n form;\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new PaymentSummary(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n this.paymentSummary = document.querySelector('.summary-cart');\r\n if (!this.paymentSummary) {\r\n return;\r\n }\r\n this.form = document.querySelector('.checkout form');\r\n const formId = this.form ? this.form.id.substring(0, 32) : null;\r\n this.paymentSummaryAjax = this.paymentSummary.getAttribute('data-handler');\r\n if (!this.paymentSummaryAjax) {\r\n return;\r\n }\r\n this.paymentSummaryAjax = this.paymentSummaryAjax.replace(encodeURI('{currentCheckoutFormId}').toLowerCase(), formId);\r\n this.form.closest('.cp-alpaca-form').classList.add('loader')\r\n this.PaymentSummaryInit();\r\n }\r\n\r\n private PaymentSummaryInit() {\r\n\r\n this.fetchAndUpdateStore(this.paymentSummaryAjax);\r\n }\r\n\r\n private fetchAndUpdateStore(url: string): void {\r\n fetch(url, { credentials: \"include\" })\r\n .then((res) => res.text())\r\n .then((res) => this.updateContent(res))\r\n .then(() => window.Eucerin.initModules())\r\n }\r\n\r\n private updateContent(res) {\r\n this.paymentSummary.innerHTML = res;\r\n if (document.querySelector(\".checkout .confirm-order .checkbox-wrapper\")) {\r\n\r\n const FormCheckout = () => import ('../modules/FormCheckout');\r\n FormCheckout().then((module) => new module.default(document.querySelector(\".checkout\")));\r\n }\r\n\r\n this.form.closest('.cp-alpaca-form').classList.remove('loader')\r\n }\r\n}\r\n\r\nnew PaymentSummary.setup();","const moduleSelector = '[data-module=\"RatingAndReviews\"]';\r\nimport { createElementFromString } from '../helpers/DOMHelpers';\r\nexport default class RatingAndReviews {\r\n ratingStars\r\n clickedStar;\r\n changeableText;\r\n clickedStarValue;\r\n currentClickedStar;\r\n stars;\r\n clickedStarText;\r\n previousStars;\r\n rating;\r\n rankingWrapper: HTMLElement;\r\n\r\n selectedRatingNumber: number = 0;\r\n\r\n static setup(selector: string = moduleSelector): void {\r\n Array.from(document.querySelectorAll(selector)).filter((node: HTMLElement) => !node.dataset.moduleInitialized).forEach((element: HTMLElement) => {\r\n new RatingAndReviews(element);\r\n element.dataset.moduleInitialized = 'true';\r\n });\r\n }\r\n\r\n constructor(public element: HTMLElement) {\r\n const selectRanking = this.element.querySelector('.ranking select');\r\n this.rankingWrapper = this.element.querySelector('.ranking .droplist-wrapper')\r\n !this.rankingWrapper.querySelector(\".ranking\") ? this.buildRating():\"\";\r\n\r\n selectRanking ? this.element.querySelector('.ranking select').classList.add('rating-select') : \"\";\r\n this.element.closest(\".layer\") && !this.element.closest(\".layer\").classList.contains(\"leave-rating-button\") ? this.element.closest(\".layer\").classList.add(\"leave-rating-button\"):\"\";\r\n };\r\n\r\n buildRating(): void {\r\n let ranking = Array.from(this.element.querySelectorAll('.ranking select')),\r\n options: HTMLOptionElement[],\r\n stars,\r\n rating: HTMLElement,\r\n selectedStar: HTMLElement,\r\n selectedText: HTMLElement,\r\n selectEl,\r\n selectedValue;\r\n\r\n ranking.forEach((select: HTMLOptionElement, index) => {\r\n select.style.display = 'none';\r\n options = Array.from(select.querySelectorAll('.ranking option'));\r\n selectedText = createElementFromString('');\r\n rating = createElementFromString('
    ');\r\n\r\n selectEl = select.querySelector('[selected=\"selected\"]');\r\n selectEl ? selectedValue = selectEl.getAttribute('value') : \"\";\r\n (selectedValue)\r\n ? stars = this.buildStars(options, selectedValue)\r\n : stars = this.buildStars(options, 0);\r\n\r\n\r\n stars.forEach((element: HTMLElement, index) => {\r\n if (element == undefined) {\r\n return false;\r\n }\r\n\r\n element.addEventListener('click', (event) => {\r\n var star = event.currentTarget;\r\n selectedText.innerText = star.getAttribute('data-text')\r\n this.selectedRatingNumber = index;\r\n selectedStar = star;\r\n select.value = star.getAttribute(\"data-value\");\r\n });\r\n\r\n element.addEventListener('mouseenter', (event) => {\r\n var star = event.currentTarget;\r\n this.onHoverHandler(index - 1);\r\n selectedText.innerText = star.getAttribute('data-text');\r\n });\r\n\r\n rating.append(element);\r\n });\r\n\r\n\r\n rating.addEventListener('mouseleave', () => {\r\n if (selectedStar) {\r\n this.onMouseleaveHandler(this.selectedRatingNumber)\r\n selectedText.innerText = selectedStar.getAttribute('data-text');\r\n\r\n } else {\r\n stars.forEach((select: Element, index: number) => {\r\n if (select == undefined) {\r\n return false;\r\n }\r\n select.classList.remove('full-star');\r\n });\r\n selectedText.innerText = ''\r\n }\r\n });\r\n\r\n if (selectedValue) {\r\n this.selectedRatingNumber = selectedValue;\r\n\r\n var selectedStarArray = stars.filter((star: HTMLElement) => {\r\n if (star == undefined) {\r\n return false;\r\n } else {\r\n return star.getAttribute('data-value') == selectedValue;\r\n }\r\n\r\n })\r\n selectedStar = selectedStarArray[0]\r\n selectedText.innerText = selectedStar.getAttribute('data-text');\r\n\r\n } else {\r\n selectedText.innerText = \"\";\r\n }\r\n\r\n this.rankingWrapper.append(rating);\r\n this.rankingWrapper.append(selectedText);\r\n this.ratingStars = this.element.querySelectorAll('.ranking .star');\r\n });\r\n }\r\n\r\n buildStars(options, selectedValue): HTMLElement {\r\n\r\n return options.map((option: HTMLElement, index: number) => {\r\n var fullClass = \"\";\r\n (index <= selectedValue) ? fullClass = \"full-star\" : \"\";\r\n if (option.getAttribute('value') === \"\") {\r\n return;\r\n } else {\r\n return createElementFromString('
  • ');\r\n }\r\n });\r\n }\r\n\r\n private onHoverHandler(index) {\r\n\r\n for (var i = 0; i < this.ratingStars.length; i++) {\r\n var star = this.ratingStars[i];\r\n if (i <= index) {\r\n star.classList.add('full-star');\r\n } else {\r\n star.classList.remove('full-star');\r\n }\r\n }\r\n }\r\n\r\n private onMouseleaveHandler(ratingNumber) {\r\n if (ratingNumber == 0) {\r\n this.ratingStars.forEach((element: HTMLElement) => {\r\n element.classList.remove('full-star');\r\n })\r\n } else {\r\n if (!Eucerin.isTablet) {\r\n this.onHoverHandler(ratingNumber - 1);\r\n }\r\n }\r\n }\r\n}\r\n\r\nnew RatingAndReviews.setup();"],"sourceRoot":""}